<?php

class User {
    var $UserID, $UserName;
    var $FirstName, $LastName, $Address, $City, $State, $ZipCode, $TelephoneNumber;
    
    var $UserType;
    
    function User($row) {
        $this->UserID = $row["UserId"];
        $this->UserName = $row["UserName"];
        $this->UserType = $row["UserType"];
        $this->FirstName = $row["FirstName"];
        $this->LastName = $row["LastName"];
        $this->Address = $row["Address"];
        $this->City = $row["City"];
        $this->State = $row["State"];
        $this->ZipCode = $row["ZipCode"];
        $this->TelephoneNumber = $row["TelephoneNumber"];
    }
    
    function toArray() {
        $ret = array();
        $ret["UserID"] = $this->UserID;
        $ret["UserName"] = $this->UserName;
        $ret["FirstName"] = $this->FirstName;
        $ret["LastName"] = $this->LastName;
        $ret["UserType"] = $this->UserType;
        $ret["Address"] = $this->Address;
        $ret["City"] = $this->City;
        $ret["State"] = $this->State;
        $ret["ZipCode"] = $this->ZipCode;
        $ret["TelephoneNumber"] = $this->TelephoneNumber;
        return $ret;
    }
}

?>
